<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ShowZoomLevel.aspx.cs" Inherits="MapInfo_ShowZoomLevel" Title="Untitled Page" %>
<%@ Register Assembly="PietschSoft.VE" Namespace="PietschSoft.VE" TagPrefix="PietschSoftVE" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <h1>This example isn't finished and relys on future features to be finished.</h1>
    
    <PietschSoftVE:Map runat="server" ID="Map1" Width="600" Height="400" Zoom="6" Latitude="47.67" Longitude="-122.37" />
    
    <strong>Display Using Postback</strong> - <i><small>(Map properties need to be sent back to the server on Postback for this one to work, which isn't implemented yet.)</small></i><br />
    <asp:Button runat="server" ID="btnPostback" Text="Click Here" OnClick="btnPostback_Click" />&nbsp;Zoom Level: <asp:Label runat="server" ID="lblPostbackZoomLevel"></asp:Label><br />
    <br />
    
    <%-- NOT WORKING
    <strong>Display Using Client-Side JavaScript</strong><br />
    <input type="button" value="Click Here" onclick="DisplayZoomLevel();" />
    <script type="text/javascript">
        function DisplayZoomLevel()
        {
            alert(1);
            var control = $find("Map1");
            alert(2);
            var map = control.get_VEMap();
            alert(map.GetZoomLevel());
        }
    </script>
    --%>
    
</asp:Content>

